let x=1, promise, value;

//async
promise = foo(x)
async function foo(x){
    let re = x+1
    return re
}

//await
try{
    value = await promise
}catch(e){
    console.log(e)
}
